package com.zmn.oms.zmn.business.interfaces.statistics;

import com.zmn.oms.common.dio.normal.statistics.MasterOrderStatDIO;
import com.zmn.oms.common.dro.statistics.MasterOrderStatDRO;
import com.zmn.oms.common.exception.OmsBaseException;

/**
 * 类描述：
 *
 * @author liuyufan
 * @date 2021/12/6
 */
public interface StatOrderBService {

    /**
     * 根据工程师ID统计工单数据
     *
     * @param masterOrderStatDIO
     * @return
     * @throws OmsBaseException
     */
    MasterOrderStatDRO getOrderStatByMasterId(MasterOrderStatDIO masterOrderStatDIO) throws OmsBaseException;

    /**
     * 根据完成人查询数量
     *
     * @param completerId
     * @param startDate   开始时间，格式 yyyy-MM-dd HH:mm:ss
     * @param endDate
     * @return
     */
    Long countCompletedOrderByCompleteId(Long completerId, String startDate, String endDate);
}
